<?php
namespace App\Admin\Actions\Grid;
use App\Admin\Forms\OwningDevice as OwningDeviceForm;
use Dcat\Admin\Widgets\Modal;
use Dcat\Admin\Grid\RowAction;
class OwningDevice extends RowAction
{
     protected $title = '所属设备';
    
 
     public function render()
     {
      
         // 实例化表单类并传递自定义参数
         $form = OwningDeviceForm::make()->payload(['id' => $this->getKey()]);
        
         return Modal::make()
             ->lg()
             ->title($this->title)
             ->body($form)
             ->button($this->title);
            
     }
 }





